#ifndef NTOH_H
#define NTOH_H

#define CL		0
#define	SV		1
/**
 **	Converts a stream to a struct contained in CLSV_BUFFER, which represents a
 ** packet, from network to host byte order.
 **
 ** @param	p		Pointer to the CLSV_BUFFER * where the converted stream will
					be left.
 ** @param	stream	Pointer to the stream to convert.
 ** @param	src		Client (CL) or server (SV).
 ** @return			Returns 1 if no error ocurred, else -1.
 **
 **/
int ntoh_clsv_buffer(CLSV_BUFFER ** p, void * stream, int src);

#endif
